package smartagdemo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import smartagdemo.mapper.UploadMapper;
import smartagdemo.service.UploadService;

@Service
public class UploadServiceImpl implements UploadService {

    @Autowired
    private UploadMapper uploadMapper;
//上传湿度数据
    @Override
    public void uploadHumidity(double humidity) {
        uploadMapper.uploadHumidity(humidity);
    }
//上传温度数据
    @Override
    public void uploadTemperature(double temperature) {
        uploadMapper.uploadTemperature(temperature);
    }
//上传光照数据
    @Override
    public void uploadLight(double light) {
        uploadMapper.uploadLight(light);
    }
//上传测试数据
    @Override
    public void uploadTest(double humidity, double temperature, double light) {
        uploadMapper.uploadTest(humidity,temperature,light);
    }

    @Override
    public void uploadDateHumidity(double humidity) {
        uploadMapper.uploadDateHumidity(humidity);
    }

    @Override
    public void uploadDateTemperature(double temperature) {
        uploadMapper.uploadDateTemperature(temperature);
    }

    @Override
    public void uploadDateLight(double light) {
        uploadMapper.uploadDateLight(light);
    }

    @Override
    public void uploadDateTest(double humidity, double temperature, double light) {
        uploadMapper.uploadDateTest(humidity,temperature,light);
    }
}
